package com.lfs.dingtalk.robot.web;

import com.aliyun.dingtalkcard_1_0.models.*;
import com.aliyun.dingtalkrobot_1_0.Client;
import com.aliyun.dingtalkrobot_1_0.models.BatchRecallOTOHeaders;
import com.aliyun.dingtalkrobot_1_0.models.BatchRecallOTORequest;
import com.aliyun.dingtalkrobot_1_0.models.BatchSendOTOHeaders;
import com.aliyun.dingtalkrobot_1_0.models.BatchSendOTORequest;
import com.aliyun.tea.TeaConverter;
import com.aliyun.tea.TeaException;
import com.aliyun.tea.TeaPair;
import com.aliyun.teaopenapi.models.Config;
import com.aliyun.teautil.Common;
import com.aliyun.teautil.models.RuntimeOptions;
import com.dingtalk.api.DefaultDingTalkClient;
import com.dingtalk.api.DingTalkClient;
import com.dingtalk.api.request.OapiRobotSendRequest;
import com.dingtalk.api.response.OapiRobotSendResponse;
import com.lfs.dingtalk.robot.domain.DingTalkSentRequest;
import com.lfs.dingtalk.robot.domain.GroupChatSendRequest;
import com.lfs.dingtalk.robot.servcie.DingTalkService;
import com.lfs.dingtalk.robot.servcie.MessageTypeStrategyContext;
import com.taobao.api.ApiException;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.util.codec.binary.Base64;
import org.springframework.web.bind.annotation.*;
import shade.com.alibaba.fastjson2.JSON;

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Map;
import java.util.UUID;

import static com.lfs.dingtalk.robot.constants.CommonConstant.APP_KEY;
import static com.lfs.dingtalk.robot.constants.CommonConstant.ROBOT_CODE;

@RequestMapping("/dingTalk")
@RestController
@Slf4j
public class ScheduleController {

    private final static String UNION_ID = "DiPiipdwiPcOpbKaaxHqbXKHQiEiE";

}
